package com.fhz.a2102shopjava.dao;

import android.content.Context;

import androidx.room.Database;
import androidx.room.Room;
import androidx.room.RoomDatabase;

import com.fhz.a2102shopjava.ui.login.data.model.LoggedInUser;

/**
 * 时间:2023/8/18
 *
 * @author Mr.Feng
 * 简述:
 */
@Database(entities = {LoggedInUser.class}, version = 1,exportSchema = true)
public abstract class AppDatabase extends RoomDatabase {
    public abstract UserDao userDao();

    public static AppDatabase getInstance(Context context) {
        return Room.databaseBuilder(context, AppDatabase.class, "a2102")
                .build();
    }

}